<template>
  <div class="box">
    <div class="ul flex vc hb">
      <div class="tit">电子发票</div>
      <div class='titx flex vc'>{{detail.status === 1 ? '已开票' : '待处理'}}<img src="../../assets/img/invoice/back.png" alt=""></div>
    </div>
    <div class="li flex vc">
      <div class="label">发票抬头</div>
      <div class='text'>{{ detail.name }}</div>
    </div>
    <div class="li flex vc">
      <div class="label">税号</div>
      <div class='text'>{{ detail.taxId }}</div>
    </div>
    <div class="li flex vc">
      <div class="label">发票金额</div>
      <div class='text'>{{ detail.donate }}元</div>
    </div>
    <div class="li flex vc">
      <div class="label">开票时间</div>
      <div class='text'>{{ detail.createDate }}</div>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      detail: {}
    }
  },
  created () {
    this.detail = this.$route.query
  },
  methods: {}
}
</script>

<style scoped>
  .flex {
    width: auto;
  }

  .li {
    font-size: 16px;
    padding: 15px 20px;
  }

  .ul {
    font-size: 16px;
    padding: 20px;
  }

  .txt {
    color: #434343;
  }

  .titx {
    color: #959595;
  }

  .titx img {
    width: 8px;
    height: 16px;
    margin-left: 15px;
  }

  .label {
    width: 110px;
    color: #959595;
  }

  .text {
    color: #535353;
  }

  .tip {
    border: 1px solid #4783F1;
    color: #4783F1;
    padding: 1px 6px 2px;
    border-radius: 5px;
    margin-left: 10px;
    font-size: 13px;
  }

  img {
    width: 25px;
    height: 25px;
  }
</style>
